<div class="error"><?php echo validation_errors(); ?></div>
<?php echo form_open(base_url().'/admin.php?c=contact&m='.(isset($contact)?'update':'add')); ?>
<div class="form_row">
    <label for="telephone">联系电话</label>
    <input type="text" name="telephone" id="telephone" value="<?php echo isset($contact)?$contact->telephone:set_value('telephone'); ?>"/>
</div>
<div class="form_row">
    <label for="email">电子邮箱</label>
    <input type="text" name="email" id="email" value="<?php echo isset($contact)?$contact->email:set_value('email'); ?>"/>
</div>
<div class="form_row">
    <label for="address">详细地址</label>
    <input type="text" name="address" id="address" value="<?php echo isset($contact)?$contact->address:set_value('address'); ?>"/>
</div>
<div class="form_btn">
    <input type="submit" name="submit" value="提交"/>
</div>
<?php echo form_close(); ?>
